<?php
namespace app\index\controller;
use think\Db;
class Service extends Base{
    public function service(){
        $server_banner=Db::name('server_banner')->where('id',1)->find();
        $server_ex_l=Db::name('server_ex_l')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $server_express=Db::name('server_express')->order('id asc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('server_banner',$server_banner);
        $this->assign('server_ex_l',$server_ex_l);
        $this->assign('express',$express);
        $this->assign('server_express',$server_express);
        return $this->fetch();
    }
    public function process(){
        $server_banner=Db::name('server_banner')->where('id',1)->find();
        $server_process=Db::name('server_process')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('server_banner',$server_banner);
        $this->assign('server_process',$server_process);
        $this->assign('express',$express);
        return $this->fetch();
    }
    public function advantage(){
        $server_banner=Db::name('server_banner')->where('id',1)->find();
        $server_sup_l=Db::name('server_sup_l')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $server_superiority=Db::name('server_superiority')->order('id asc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('server_banner',$server_banner);
        $this->assign('server_sup_l',$server_sup_l);
        $this->assign('express',$express);
        $this->assign('server_superiority',$server_superiority);
        return $this->fetch();
    }

    public function protect(){
        $server_banner=Db::name('server_banner')->where('id',1)->find();
        $server_ensure_title=Db::name('server_ensure_title')->where('id',1)->find();
        $express=Db::name('express_style')->order('id asc')->select();
        $server_ensure=Db::name('server_ensure')->where('state',1)->order('sort desc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('server_banner',$server_banner);
        $this->assign('server_ensure_title',$server_ensure_title);
        $this->assign('express',$express);
        $this->assign('server_ensure',$server_ensure);
        return $this->fetch();
    }
}
